Averaging for Dynamic Time Warping