Growth, Trade and Endogenous Technology