[WIP] Implementing Averaged SGD

Working on implementing averaged SGD for both classifier and regressor for #543
This pointer is actually not `const`.