Add circular buffer.
Add circular buffer class for priorities.
Move db::intrusive_list to utils::intrusive_list.