title: Best data structure for two way mapping
body: <p>I want a data structure that maps from key to object and vice-versa(unlike HashMaps that map only in a single direction.) An idea could be to store the HashMap within itself for reverse look-up, but it will be an inefficient approach.</p>
  
  <p>What would be the best implementation for two-way mapping?</p>