L2P: merge match_l2p_rule into the main algorithm