Fixed problem with cycle detection
Added Strongly connected components for directed graphs