implementing non recursive fibonnaci