Add multi thread indexing to hierarchical_clustering_index.