Cycle detection v1. Stops after the first cycle is detected