start of quickhull implementation