a simple markov chain library