Updated Hamming to conform to actual Haming definition.

 Strings of unequal length now return nil.

Also updated out of date syntax to conform to changes as of Swift 1.0 release.