cstat - cpp library for stats