finish Recursive solution for Knapsack problem