LeastSquares fix

using numpy to fix LeastSquares?