Check if a binary (search) tree is balanced. Read comments for more info.