First draft machinery code for Merge joins