Distance Matrices are written to file