remove duplicated Elements from sorted array II