Mess around with max_by for picking a pair for a triplet