Use std::map in RuleConfiguration

For cleaner code and better performance.