binary search tree iterator