Fix issues in the subset problem. Make sure duplicate sets are removed from the subsets generated