Added iter solve method wrappers (cg - bicg).Also some helper functions