test for rebuild binary tree
rebuild binary tree