Why Qatar is Insanely Rich and Algeria Isn't