Added CycleDetection.java