adding brute force search for optimal solution for 1/0 knapsack problem