elementary sorts, convex hull