remove duplicates FromSortedArray