Lua implementation of spelling corrector example implemented by Peter Norvig