A circular stream based on memory. A blocking implementation is also included.