intercluster_analysis working for multiple clusters