Fast DTW - the case of line 'above' has been implemented