Update em.m

Modifying the algorithm to store the history of log-likelihood estimations per iteration.