make Permutation's constructor private
extract rotate & shuffle from jdk source