Implemented the bimap structure for tracking Hbonds