add unit test and matrix tools method and javaplot