Linkedlist loop detected