Generate voronoi patterns in C