add Longest Lines

Python
add Detecting Cycles

Python