Use of memoization to find Fibonacci numbers