Add notes on memoization.