Fix memoization of Euler 014.