In the process of going back to y-combinator version of memoize