Create detect loop in linked list