Update Detect cycle in LinkedList