結果 : floyd algorithm to find loop detection