A collection of algorithms for reducing the number of points in polyline