Added dtwMex for dynamic time warping