M5A function

Model M5A MLE function