added to_lua_string method to matrices