Fixed build_tree() center computation.