knapsack partially working, just for low dimensions