adds fib with memo in global variable