Rewrote Dictionary as a Binary Search Tree