Algorithms for Automated Line Generalization in GIS