A cython implementation of dynamic time warping