Endogenous Transaction Cost, Specialization, and Strategic Alliance