Revert "Optimized calculating delaunay distance."

This reverts commit 6b960c50a37b82d4fa177c058acfb8556bed6df9. Performance
mysteriously regressed due to the optimization, will explore what's going
on and revert to the more performant code until then.