intersection of sorted lists