Endogenous Innovation in the Theory of Growth