Searching for the optimal smoothing before applying Dynamic Time Warping