pseudocoded (and in part actual-coded) services.matchTrips
merge resolution