Update Matrix.cs