fibonacci non recursive function working