remove duplicate from sorted list