Update topics aggregation total and clusterwise and writing it for entropy calculation