Updated HammingDistance.php to allow for tokenized parameters.

I was testing the different similarity indexes and noticed that HammingDistance would fail if I used Tokenize before hand. I accounted for this, so it now accepts pure strings, or tokenized input.