Algorithms for Object Selection in GIS