Statistical Regimes and Runtime Prediction