Fixed bugs in propagation of intermediate value in memory-efficient Knapsack DP algorithm.