Worked on memoization for eighteen