function B=merge_marker(A)
B=sort(A);
inds=[];
i=1;
while i < size(B,2)
    if B(i)== B(i+1)
       inds=[inds i];
    end
    i=i+1;
end

B(inds)=[];