Check if binary search tree is valid