unionCohorts function

Union all cohorts in a single cohort table