calculate a voronoi diagram