add a range to remove duplicates from sorted array 2