retrieveH function

Retrieving tree height from models