Computing median time in solving mode fixed.
Speed up checking of stop-messages in predicting mode (after every restart)