added function for resetting history in LBFGS