init solution for symmetric tree.