Create subset of size k.java