added subsetsum and knapsack