added new type of permutation (based on Boninsegni permutation). added fast exponential function