added Baum-Welch algorithm, state assignment (max and Viterbi),..