First pass at strongly connected components algorithm. Definitely doesn't work at this point.