Expectation-Maximization code added. Typo fixed.