A translation of the public domain JAMA (Java Matrix Package) to C++ using boost.ublas for the linear algebra