Converting to the Matrix Toolkit for Java library from Apache Commons
Math because it is roughly 12xs faster with the larger sized matrices.