Update Linked List Cycle .cpp