remove duplicates sorted array