Implemented a fibonacci algorithm