Update em.m

Adding the calculateLogLikelihood function.