Added Turtle and hare cycle detection