removin duplicate copies of the singly linked list