Combinations in Java: Selecting K Items from an Array of N Objects