tools for bankruptcy project for RcppGSL