C based revision of NMergeNew (Java)