: remove duplicates from a linked list