A real-time conflict solution algorithm for the train rescheduling problem