hamming.Distance implementation

This is my cheap/easy version that appears to pass all tests.