add detect circle in a linked list