levenshtein algorithm >10x faster

Not to mention way easier to read.

New palindrome function is ~2x as fast and much simpler
Merge pull request #1 from MontmereLimited/master

levenshtein algorithm >10x faster