tidy-822209: Tidy-up speller
tidy-822209: Tidy-up speller

Better variable names: N->wordiLen, M->wordjLen and sorted_candidates->
sortedCandidtates
Also add protection against when a zero length list of names are passed
in.

mozilla/gcli,joewalker/gcli,joewalker/gcli,mozilla/gcli,mozilla/gcli