cache-oblivious implementation of transpose and ctranspose plus restructuring