Xu's C++ library