solves fibonacci using iteration