Tiny buffers for electronic and optical routers