achieve binary tree with PHP
update binary tree