Enqueue an item (either an object or an (importance, object) tuple) in a buffer.
Parameters:
item (object or tuple[float, object]) – If item is an object, enqueue using a default importance value. Otherwise, item is
an (importance, object) tuple, and the object is enqueued with the given importance.