Add first implementation of the conjugate gradient method and its tests.