https://123dok.net/document/zkw6g3r1-general-algorithm-sampling-rare-events-equilibrium-stationary-systems.html