Logical Algorithms meets CHR: A meta-complexity result for Constraint Handling Rules with rule priorities