added a sanity check to verify that rows != cols in svd