get tree height