initialize the memoization array