binary tree: child sum check and conversion