move voronoi functions to VoronoiUtil class.