three different ways to calculate the nth fibonacci number