Knapsack problem; simple loop works, one with memoization in progress
Correct memoized Knapsack problem for repeated and unrepeated items situations