Provides the DTW step functions implementations.