public static double[][] Koperta(Index[] data2,int n,int p){
        Index[] data = new Index[data2.length];
        data=ReverseIndex(data2);
        double[][] out = new double[2][data.length];
        double[] temp = new double[data.length];
        temp=MA(data,n);
         for(int i=0;i<data.length;i++){
            out[0][i]=temp[i]+((double)p/100)*temp[i];
            out[1][i]=temp[i]-((double)p/100)*temp[i];
        }
        out[1]=Reverse(out[1]);
        out[0]=Reverse(out[0]);
        return out;
    }