A C++ library for computing statistics