added setMatrix.java