WIP: Untidied but working, the memoized version of the knapsack.

Mucho fasto.