Grouping time series by pairwise measures of redundancy