Remove duplicates in array.