screw the quadtree, its too complex, just use first and last half of the line