add remove duplicate from sorted array.