A billionaire math genius uses his own money to give hundreds of teachers a $15,000-a-year raise.