knapsack - file save