Support for Euclidean and cityblock distances