Small optimization of rule matching loop
Merge pull request #217 from VladimirTechMan/improve_rule_matching_loop

Small optimization of rule matching loop