Partial Dynamic Time Warping