def absolutelyNonDecreasing(buffer,item,attempts):
    """
    Stops after the buffer has seen an absolute value larger than the one being searched for.
    The example halting condition given in the documentation.
    """
    if abs(buffer._cache[-1])>abs(item):
        return True
    return False