assignment 5 knapsack