Add the remove duplicates in sorted list