Pairwise matching, worker heterogeneity and non-linear wages