implement fibonacci with non-recursive