Knapsack problem for Heuristic Problem Solving