A C++ class library for scientific computing