DTW: refactor
In preparation for FastDTW.
DTW should just take two series as inputs. That is: DTW(series1, series2) with returns a cost. No storage in DTW.
Also, the shorter series should be second:
if (tsI.size() < tsJ.size())
return getWarpDistBetween(tsJ, tsI, distFn);