Turn `markov_chain` into a generator function
Pad input sequence with sentinal values
v1.0.1 release