Fixed last for-loop
Added markov π programs