generateSubsets