knapsack typo