An implementation of the Ramer Douglas Peucker algorithm.
Given a slice of Point2 and an epsilon, the rdp() function will return a Vec of which indices to keep.
Point2
rdp()