Make block size parameterisable
Parameterise matrix permutation