Memoization modules

Helper modules for different kinds of memoize functions.