Sets an array to collect a history of the differencing values (h) computed for the matrix-free product
J - the
history - space to hold the history
nhistory - number of entries in history, if more entries are generated than nhistory, then the later ones are discarded
MatMFFDResetHHistory() to reset the history counter and collect
a new batch of differencing parameters, h.