Stochastic model for the real-time train rescheduling