added segment utils to support preprocessing of line segment data to satisfy voronoi diagram precondition