Added two implementations of Permutation.