The demo code in `demos/example2.py` throws an error because of some problem with the convex hull algorithm. Fix this!