added dtw diagonal relaxation scheme