r3_tree_insert_pathl_ex function