Fix accuracy of the least squares implementation via svd
Fix accuracy of the pseudo-inverse implementation