optimized ngrams versions of levenshtein and subs-only searches