working on matlab.lua mainly handle the matrix calculation in Lua