Linear Transformations on Algebras of Matrices