How Melinda Gates' own history helped shape the billionaire's philanthropy.