Convert binary search tree to the map
Implement AVL tree