added different length markov chains