Tree height to max-height