One-pass Algorithm for ∩S         (very similar to ∪S)