A barycentre calculator for Pair