normalizer template
Improved dtw algorithm performance