added karplusstrong_memoized.hs, an example of memoization in haskell

basically this makes the code practical/runnable, where before it
wasn't.  I wasn't able to compute much past 200 samples with the
non-memoized version, but this one runs quite fast.