Title: Self-learning control of finite Markov chains