Branch and bound knapsack solution part 1