Fixed errors and updated print_subsets_lexicographically