pub fn extract_convex_hull(
    points: &Vec<Point>,
    contain_on_segment: bool
) -> Vec<usize>