From Online to Batch Learning with Cutoff-Averaging