Adding memonize
Fixing memoization
Adding missing tests
Merge pull request #48 from ankurp/memonize

Adding memonize