Topological data analysis and clustering