add Matrix.java