public void display()
    {
        System.out.println("Source \n");
        for (int i = 0; i < dim; i++) {
            for (int j = 0; j < dim; j++) {
                System.out.print(source[i][j] + " ");
            }
            System.out.println();
        }

        System.out.println("result \n");
        for (int i = 0; i < dim; i++) {
            for (int j = 0; j < dim; j++) {
                System.out.print(result[i][j] + " ");
            }
            System.out.println();
        }
    }