added a simplify shapes script, which follows the Ramer-Douglas-Peucker algorithm