Update em.m

Algorithm finished.  All is left is to implement convergence.