add MatrixDistanceCalculator