Simple C++ Dynamic Time Warping implementation