pre/inorder reconstruction