Update matrix.java
Merge pull request #1 from saeed0451/patch-1

Update matrix.java