computing convex hull + method for sorting implemented to intersectionpoin