Clustering instances instantiated n times