How to check if two permutations are symmetric?,"Al = [al1, al2, al3, al4, al5, al6]"