dictionary API for BinarySearchTree