added Matrix.java