Update knapsack.pl