Revert "Changed the fib function to be a generator to make it more readable"

This reverts commit 15a7d8bcc39066a3263cb040307c21ecfdb72dba.