Clustering for large dataset