Rewrite `chr.toDistanceMatrix()`.