resamplingLocalI function

Calculates n permutations of the variable of interest to calculate n different I in order to create the NullNull distribution.