hri2 function

Resident-optimal matching in the hospital/residents problem with couples