Dynamic time warping (DTW)