Growth and Agglomeration in the Heterogeneous Space: A Generalized AK Approach