make reversed index computation can be used by other rules.
add support for broadcast and leapfrog join.