fixed the optimized version of the DTW algorithm to work with gesture/vector objects, added new test for this