remove duplicates from sorted array

trivial way