Fixed bugs in sort() method; Fixed macroaverage computation;
Enabled random permutations
Fixed distributed computation bugs caused by netCDF