EEG waveform analysis by means of dynamic time-warping