remove_duplicates from singly linked list.