Allow input of maximum number of iterations in linear equation solver