The function exhaustivePermutations is referenced in compareRefRDM2candRDMs but is not to be found in the toolbox.