first commit, working on Markov algorithm