added a montecarlo function which produces mse
added a montecarlo function which produces mse