Using pinv for the normal equation, for non-invertible matrices