modified generate subsets algorithm to use tuple representation for subsets (vs strings)