Converted heightmap into 2d array.

Still think previous method works just fine though.