Permutation program for analysis of algorithms