conjugate gradient returns solution vector in addition to printing it out