Added simplified version of knapsack