binary tree iterator