Check if points are collinear
Given at least three points encoded as `[x1,y1,x2,y2,...]`, return `1` if every point lies on the line through the first two points, otherwise return `0`.
Given at least three points encoded as `[x1,y1,x2,y2,...]`, return `1` if every point lies on the line through the first two points, otherwise return `0`.