Implemented solution for 0/1 Knapsack problem via DP