public Matrix(int x, int y){
        this.x = x;
        this.y = y;
        mat = new int[x][y];
        
        for(int i = 0; i < x; i++){
            for(int j = 0; j < y; j++){
                mat[i][j] = 1;
            }
        }
    }