I think that having a set of vectors may be a bit confusing here. Perhaps a set of integers?

The intersection method may also want to take an explicitly constructed `TreeSet` so it's clear exactly what type is expected.