Hopefully right direction for Knapsack problem