An Obj-C port of C# algorithm from http://blog.faroo.com/2012/06/24/1000x-faster-spelling-correction-source-code-released/