Factory implementation for IntMap.