add insert and delete

This allows you to insert and delete chars and lines,
much like you can insert and delete items with `[].splice`,

This is very important if you are writing a text editor, because you can use this to update just a few characters, and push the rest of the line to the side, instead of doing extra IO to rewrite it.