Wrote a function to compute hamming distance between byte strings