[Circular list] Added generic cycle detection solution in Python