Add worstcase runtime to docstring