revise convexhull with sort algorithm by Java, using comparator