Add matrix_block_trans, matrix_block_square, matrix_mem_trans