Removing duplicates (without releasing memory) from a sorted singly-linked list.