createCohortSubsetOperator function

A definition of subset functions to be applied to a set of cohorts