Moved some asserts to a better place
Added convex hull code (approx a32307fa)
compiled