Spatial patterns of urban growth: Optimum and market