Using hierarchical model to cluster your data