fixes index use in 2D Convex Hull

This PR completes what a811c6065d402f5ac957111f81e64f65847e790a started.