Update MaxLikelihood.m