Fixed the unit vector hierarchical clustering