Add solver

Add conjugate gradient method for real sparse matrix
Rename some functions
Add comments