Use set instead of vector for connections storage