remove duplicate sorted array