Inequality may be on the rise within countries, but it has dropped dramatically among them. Nearly a billion people were lifted out of extreme poverty from 1990 to 2010; another three billion will join the global middle class in the next two decades.