Implemented IBM model 1 and its training using the EM algorithm.