Removing bad stretches and artifacts in EEG Signal