Fastest way to get hamming distance for integer array Fastest way to get hamming distance for integer array numpy numpy