Implemented IBM2 model