Initial import of circular buffer
cosmetic: more idiomatic go