added --seed option to Sample and Perm
added test for Sample
added tests for Perm