Conjugate Gradient Method Algorithm