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

Mucho fasto.
Tidied, memoized version of the knapsack.
Merge pull request #3 from krisajenkins/memoize

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