Fix memoize example to use memoized function within the scope.
Merge pull request #1012 from blakeembrey/fib-test

Fix memoize example to use memoized function within the scope