rebuild package after including function for a permutation procedure