check if a linked list is loop