Isometries of matrix algebras