Iterative dictionary using bst implementation