changed SVD text input/output to treat S as a matrix per program specs