Added DistanceMetricMethod interface.