add knapsack problem