removeDuplicatesFromSortedList