simpleline simplifies N dimensional lines using the Ramer–Douglas–Peucker algorithm