Moved ring buffer into util project