BST check BST property and rebuild from preorder