implemented and tested hamming series generator, plus the merge function, fixes #2, fixes #1