A Numerical General Equilibrium Model with Endogenous Formation of Trading Blocs