Update Matrix.java

made 2 redundant methods static