changed the articulation points algorithm