def _addPool(pool, done, val):
    """ Adds to a pool with exception list

    :param pool: pool to be added
    :type pool: set
    :param done: exception list
    :type done: set
    :param val: value"""
    if val in done:
        return
    else:
        pool.add(val)
