J. R. Shewchuk, An introduction to the conjugate gradient method without the agonizing pain, 1994.