Implemented fibonacci algo