adding customizable markov order