C++ math utility library