private double getDistance(Point point, Point key) {
        double sum = 0;
        for (int i = 0; i < point.size(); i++) {
            sum += point.get(i) * point.get(i) + key.get(i) * key.get(i);
        }
        return Math.sqrt(sum);
    }