voronoi done, with some departures from reference 2