Ml Pack Maximum Likelihood Function