written a basic implementation in cpp of the mc class and of a histogram class