typo in memoize example