A faster implementation of edit distance, since the other was way too slow for pages that needed it.