Remove duplicate from sorted list