DTW too slow