A 'quick 'n dirty' algorithm for pairing up groups of individuals