added positive definite test and trivial solution test to solvelinearsystem