CodeEval: Detecting Cycles (incomplete)