Added C extension for calculating Hamming distance.