Implementation to general problem solutions (patterns) in Lua language