Began 2d convex hull algorithm.