added matrix ( in the meaning of [[[Int]]]) representation of the terrain. Speed issue rose.