[WIP] Implementing Averaged SGD

Working on implementing averaged SGD for both classifier and regressor for #543
Thanks for the info @pprett, that's very helpful. I think as a practice I will make the nnz implementation in plain_sgd, and then look into making an AveragedWeightVector class to extract the code. I like the idea.