runnable example of hierarchical clustering which can handle the general data