rm linked list cycle