generate all the subsets of a set using vector characteristic