Nested sampling library for C++