DTW function

Dynamic Time Warping for Quaternion Time Series