Fixed problem with copying Permutation with copy() method.

To DO
- add permutation sign
- counting the determinant
- Sorting nodes dynamically