more efficient getOrCreateChild using unordered_map