Lua/Trie: Add main2.lua, the optimized version of main.lua