BTF: permutation to block triangular form