refactoring hamming Numbers

replaced a few clone() of BigUints with references (for big numbers, cloning a BigUint becomes increasingly inefficient).
refactored main to make it more readable