Find the length of cycle in a given linked list