working on delaunay algorithm