Maximum Likelihood Programming in R