understanding the expectation maximization em algorithm 99247