First brute-force pass at hamming