update second trial of remove-duplicates-from-sorted-list