added allow(dead_code) tags to m and extended in Hamming