Optimisation of the calculation of an expectation by quasi-M

Optimisation of the calculation of an expectation by quasi-M

- Improved the efficiency of Monte Carlo methods on the calc