Added functionality to conjugateGradient for iterating until tolerance is met using 0 as max_iterations