Completed the code for circularBuffer
Updated code with documentation and added some new tests