Added permutation to math
Added comments