Add multithreading and debug to convex hull.