A multi-measure nearest neighbor algorithm for time series classification