[WIP] Implementing Averaged SGD

Working on implementing averaged SGD for both classifier and regressor for #543
Indeed, comparing with a naive implementation is a very good way to check correctness.