A Genetic Algorithm for Error-Bounded Polygonal Approximation of Curves