computeLogLikelihood function

Compute the log-likelihood.