union of sorted streams