def set_threshold(values, curr_thrsh):
    """
    It's a strange point in every C4.5 implementation. We will continue the tradition
    """
    newThrsh = -max(values)
    for v in values:
        tempValue = v
        if (tempValue > newThrsh) & (tempValue <= curr_thrsh):
            newThrsh = tempValue
    return newThrsh
