duplicate removal from singly linked list implemented