Add new branch. Implement CycleMem with template class.
expose head and tail.
Merge branch 'cplus'