memoization now works on recursive objects
created unit test for memoization
added memoization example to wiki