added insert and delete operations to dynarr