adding knapsack recursive