Applies heuristic rule to an insert operation on a document and returns resulting Delta.
document
Delta
Delta? apply(Delta document, int index, Object data);