Added square matrix case for SVD... testing uncovered problems with current implementation :( (all ones leads to problem in C++ and Lua both)