main method for find all subsets