Corrections in ROJ using merge join algorithm