remove duplicate in linked list