Add gap buffer protocol.
Add array based gap buffer.