wrote iterative Fibonacci method