Fast approximate matching of binary codes with distinctive bits