Fixed list indexing bug in memory-efficient Knapsack DP algorithm.