added moving buffers

Added the moving buffer structure and a few methods to interact with it.