removeDuplicatesfromsortedlist