Does the algorithm actually work with the default value of 'residual_threshold'? I note that in the example you are setting it.