dtw now uses go.matrix