Working on voronoi diagram.

Still looks horrible, but at least started working on edge cases.