Faster and more accurate classification of time series by exploiting a novel dynamic time warping averaging algorithm