A new technique for ill-conditioned linear systems