Alternate implementation of edit distance and word suggestion