distMat thing