removeDuplicates() for linked list complete.