Matrix.java methods added