Add view, template and functions for PureData Markov chains generation

* move markov_chain function from contour to pure_data module