Implement DTW sequence search, but not quite working...