Added conjugate gradient solver. 

The solver supports both full matrix and sparse matrix.

Bicgstab is also implemented.