Added contains method for IntDouble hash map.