Check if binary tree is balanced.