validate binary search tree java python added