A New Shape-based Clustering Algorithm for Time Series