[MRG] Implementing Averaged SGD

Working on implementing averaged SGD for both classifier and regressor for #543
sgd -> SGD

it's an acronym. Functions use sgd for coding conventions