C++ boost circular buffer and stl set example, M out of N | Hacker News Reader