Try to compute node heights and balance factors at the same time.