added algorithm to print all subsets of a set