add check for solve() singularity to multivariate regression