core.matrix implementation for matrix-toolkits-java