autoSum function

Computes sum of distances between consecutive samples in a multivariate time-series.