update validate binary search tree