Find subsets in a range of integers