Added algorithm::map reserve optimization