Extend function cg with left and right preconditioning
Merge branch 'pcg' into develop
Fix incorrect residual and tolerance output