get all subsets of set with duplicate numbers