Added Memoization struct for problem 15.