Initial commit of hierarchical clustering code