public void transpose ()
    {
        for (int k = 0; k < dim/32; k++) {
            for (int l = 0; l < dim/32; l++) {
                for (int j = 0; j < 32; j++) {
                    for (int i = 0; i < 32; i++) {
                        result[l*32 + j][k*32 + i] = source[k*32 + i][l*32 + j];
                    }
                }
            }
        }
        //display();
    }