Implementation of HashMultiMap