method for dynamically setting row*col - size in GenerateTerrain