[WIP] Implementing Averaged SGD

Working on implementing averaged SGD for both classifier and regressor for #543
it's a nitpick but you should refrain yourself from touching code for style reasons as long as the the pep8 checker is happy. It creates larger diffs and more time spent by reviewers.