Added stopping criteria param and set tol = "auto"

Since the default tolerances of the two stopping conditions are
different, for the objective condition, tol is set by default
to 1e-7 and for the dual gap, tol is set to 1e-4. The cython
code has also been updated to take care of these conditions.