Implement some methods to evaluate similarity of time series