First go at Lua version of square matrix SVD implementation