input8 works
try implementation from forum
fix algorithm to detect lines
fix ArraIndexOutOfBounds exception for more than 4 points aligned