Adds a memoized Fibonacci function