add hamming_cdist utility