Calculating the distance between each pair of technology time series for each indicator grouping