Updated Hamming to conform to actual Hamming definition.

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