Add memoize decorator
Drop test run time from 39 seconds to 14 seconds
Drop test run time to 10 seconds
Merge pull request #11 from sbuss/speedup

Speedup