Checking binary tree for balance.