Add a generic Hamming metric. With dedicated intrinsic for ARM, GCC and VISUAL STUDIO compiler. #88