Dictionary implementation using BST and RBT