Simplify a list of points while keeping the shape of the line.