C++ and GUI solution for convex Hull