Functional improvements to the Levensthein distance problem.

Still slow. But it works.