Fixed hamming distance functio

* now correctly computes hamming distance
* added a stringToBytes() function to convert string
  to byte arrays which are easier to work with
Merge pull request #1 from jd1123/master

Fixed hamming distance function