example usage of hashmaps and rb-trees (using c++11)