Educational Choice, Endogenous Inequality and Economic Development