Add knapsack problem solution