Write most of the implementation of 2D fragmented ring buffer, update cppapp.