cs265/hw3: Improve non-rand support for markov++