We are only iterating sequentially, we don't need a set here Also use a vector reference instead of a copy