https://en.wikipedia.org/wiki/Piece_table https://www.averylaird.com/programming/the%20text%20editor/2017/09/30/the-piece-table/