implemented iterative fibonacci