FastDTW- Dynamic Time Warping (DTW) with a linear time and memory complexity