Implemented naive and dynamic 0-1 Knapsack algorithm