Remove duplicate elements.