Provides DTW constraints functions implementations.