Begin References in memory.py
fully amortized enqueue