Added a file with the code for the EM algorithm.