[WIP] Implementing Averaged SGD

Working on implementing averaged SGD for both classifier and regressor for #543
Excellent, I'll take a look at this. I did feel that the test wasn't as good as it should be.