The Douglas-Peuker path reduction algorithm

A simple implementation of the Douglas-Peuker path reduction algorithm. Use for simplifying curves, for instance in plotting coastlines. Loosely based on this implementation: http://karthaus.nl/rdp/