optimize: make the match() function fully compiled

Now the match() function can be compiled fully by LuaJIT v2.1
and the speedup using the pattern list in CloudFlare's WAF
rules is remarkable, mostly 2x ~ 3x:

+109.48%
+125.36%
+212.39%
+243.75%
+192.16%
+76.29%
+148.88%
+124.94%

But yeah, the C++ implementation in
https://github.com/cloudflare/lua-aho-corasick is still much
faster, it still makes sense to merge this patch to this project
for comparison.

Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
Merge pull request #2 from agentzh/optimizations

optimize: make the match() function fully compiled