Find articulation points in a graph using C++