++ dynamicTimeWarping