implemented faster way of enumerating all subsets for pool stealing