c/c++ general math library