Lua translation of simplex noise functions from webgl-noise