Add persistent undo
Resize buffers by 5 instead of 1