find the cycle of linked list