Modify Swap.v to RTL
Make perm.template.v array-in array-out
Add new testbench and renane the old one
Add some comment

Fix a minor bug in perm.template.v, where declaration is after using