A dynamic programming algorithm implementation to solve the Knapsack problem.