Cluster Analysis Algorithm For Cohort Comparison