Chain cython

stealing @larsmans's viterbi
True that. Thanks :)