changes to Matrix.java and SquareMatrix.java to use arrays