randomized permutations

finished n scalable randomized permutations. Now rewriting everything
for use with new file type