add the emission and transition prob during M-step