A Comparative Study of Clustering Algorithms