Fix some of the failing tests
Added clsqr for solving least squares