Example of Markov Chain Monte Carlo procedure for function fitting