Removes duplicate values from a numeric array.