Finished basic implementation of a 1-free circular buffer