Scala implementation of Voronoi generator.