NumPy-based constrained Dynamic Time Warping (cDTW) module