pre-allocate history for saving cross-validation path