The conjugate gradient method with various viewpoints