Added Detecting Cycles solution. Still NOT sure if it works!