Parsimonious clustering of time series