MotionPlanner: Implement buffering in a more memory efficient manner.
Instead of a linked list, use a ring buffer for the committed part,
and a pair of backup buffers for the staging part.