Knapsack bnb solver