implement hashMap using binary search tree