A world trade model based on comparative advantage with m regions, n goods, and k factors