algorithm for expectation maximization 3862945