MC2 Modeling of thermodynamic equilibrium establishment in system witn N molecules using "demon model"