jmat — row or column block permutation
[j]=jmat(n,m)
number of block rows or block columns of the matrix
size of the (square) blocks
This function permutes block rows or block columns of a matrix