add indexes to RuleGroup, RuleGroupline + add priority in RuleGroupline