Adaptive Measures Of Similarity - Fuzzy Hamming Distance - And Its Applications To Pattern Recognition Problems