Function hamN is the size N Hamming optimal coding function.
Parameter N equals 2n-1 for an integer number n. This function (with its
reversible specification for parameters N=3, 7, and 15) was proposed as a reversible benchmark by
Patel and Markov.