double VectorNorm2(double[] v) {
        double sum = 0;
        for (int i = 0; i < v.length; i++) {
            sum += (v[i] * v[i]);//*v[i];
        }
        return Math.sqrt(sum);//Math.sqrt(sum);
    }