functional tailrec fibonacci