skeleton of binary search tree