update in matrix.java

update in matrix.java