Delete duplicates from a singly linked list (before compiling).