Polyline simplification library. Ruby port of Simplify.js.