Add implementation of DFS algorithm to find bridges and articulation points.