Refactored get height from heightmap into function

Easier use, don't need to know how to get the height from the heightmap,
just type:
GetHeightAtLocation(hm, x, z)