def segment_diff(s1, s2):
return abs(s1[<NUM_LIT:0>] - s2[<NUM_LIT:0>]) + abs(s1[<NUM_LIT:1>] - s2[<NUM_LIT:1>])<EOL>
Returns the sum of absolute difference between
two segments' end points.
Only perfectly aligned segments return 0