Knapsack.c