A C wrapper for the psimpl polyline simplification library