Added conjugate gradient solver. 

The solver supports both full matrix and sparse matrix.