details on matrix.java