Compensation based on merit could help the U.S. close the international gap in student outcomes.