spellcheck.h: add best_match template; implement early-reject