math.extras: adding bitwise permutation words.