Bayesian Clustering of Shapes of Curves