[WIP] Implementing Averaged SGD

Working on implementing averaged SGD for both classifier and regressor for #543
can you revert this change and keep the cdef the way they were?
and add daxpy in one line too.