Permutation working and tested.
Generalization of the simple generation stats
More generalizable basicSimulation in test-functions_migration.R

Doesn't include the calculus of a stat
Test at_risk ok