ribs c++ library