knapsack input from file