[WIP] Implementing Averaged SGD

Working on implementing averaged SGD for both classifier and regressor for #543
you shoudl call plain_sgd if average=False and average_sgd if average=True