Store unvisited nodes in vector+list instead of unordered set