Addition of an optimizer for the algorithm (MCMC computation)