judge the linked list has cycle or not