Dictionary based on aa tree