Update Knapsack.java