decision tree solution for 0/1 knapsack problem