subset_sum rep for working on more efficient subset_sum