compare byte[] hamming distance

Signed-off-by: yuanhuan <yuanhuan@tcl.com>