Remove a point if it represents the intermediate point of a line.
We only remove 'inner' points of a line, that is, for a sequence of points like
p1----p2----p3----p4---p5
we will remove only p3. This is so that any curve can be adequately represented, e.g., so that for a stroke running like:
p0
|
p1----p2----p3----p4----p5
|
|
p6
we will neither touch p2 (required for the curve p0,p1,p2) nor p5 yet (the shape of the curve relies on p6 which is not yet recorded.