finish knapsack