k-length subsets of n elements using bitwise hack