add subsets solution