private double[] hideLay(double[][] lay) {
        double hiddenLay[] = new double[HEIGHT * HEIGHT];
        int k = 0;
        for (int i = 0; i < HEIGHT; i++) {
            for (int j = 0; j < HEIGHT; j++) {
                hiddenLay[k++] = lay[i][j];
            }
        }
        return hiddenLay;
    }