Implement correlate join (nested loops, nested loops outer)