Update perform_clustering.m