Added knapsack problem solver