Update NDDSig.java

uses more efficient merge sort. Adds a payload so as to be able to link an object with the original text e.g. in the case the document contains metadata.