created iterative fibonacci code