remove duplicats from sorted list