move knapsack to new package