Exact and Approximate Hierarchical Clustering Using A*