Bayesian Hierarchical Modeling And Its Applications To Clustering And Data Privacy Preservation