public Calculation(ArrayList<Point> arg_points) {
        this.points = new Point[arg_points.size()];
        this.tempPs = new int[points.length];
        for (int i=0; i<arg_points.size(); i++) {
            this.points[i] = arg_points.get(i);
            this.tempPs[i] = Integer.MAX_VALUE;
        }
        this.minDis = Double.MAX_VALUE;
        this.resultMap = new HashMap<Double, ArrayList<PointPair>>();
    }