construct binary tree and isValidBST