Changes in knapsack.c