intersect package:sorted-list

O(n+m). Intersection of sorted lists. If the first list contains duplicates, so will the result.