Added space complexity for Knapsack DP algorithm.