Dynamic merging of frontiers for accelerating the evaluation of betweenness centrality