Implemented 0/1 knapsack