remove equality condition in isBSTHelper