Code used to implement the matchmaking procedure described in Vaggi et al, 2014.