A clone of segmented voronoi code from http://nirarebakun.com/voro/esegcvoro.html