結果 : how to get permutation matrix