[WIP] Implementing Averaged SGD

Working on implementing averaged SGD for both classifier and regressor for #543
make it fit on one line

"Tests if averaging with Regressor matches the naive implementation"