Maybe move to util and rename to match_keypoints_hamming? This should be applicable to all types of pairwise hamming distances.