adding circular-buffer stuff for evernote challenge
finish circular-buffer challenge
const correctness, some renaming