Memoizer draft.
Main file.