An adaptive CUSUM chart for drift detection