completed EM algorithm, but waiting for the solving the small number problem