first version of memoizing fibonaci