Draft versions of Viterbi algorithm, and Conditional Random Field inference via Belief Propagation