Improved Dynamic Time Warping for Abnormality Detection in ECG Time Series