Fixes #1055. Adds a new method to SquareTerrain to retrieve the height matrix.