Establishment of a balanced binary tree with a father node