Implemented the preconditioned conjugate gradient method