restored weighted sum
Improved multidimensional dtw comparisons (I hope)