copy the marginal state distribution at nodes from the raoteh project _mc0.py code and the tests now pass