Generates 2D voronoi diagrams using pixel algorithm O(h*w*n).