Elements deduplication on sorted list.