Building Outlier-Resistant Centroids in Any Dimension