Implement CircularBuffer and solution for question 1 of the evernote challenge