Did half of part 3.2 of the homework

Did loop detection using back-edge detection.
Added Warshall's Algorithm to the code.