Find tree height