Method that returns all subsets of a set is implemented