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.

For some reason I can't find how to change the diff. behavior. It seems it is indeed considering spaces ...