markov chain wave function collapse