[linsys] return Lanczos relation from Cg
[linsys, utils] cleanup code + docs