determine if a binary tree is binary search tree