Validate BST.